Skip to content

python: add 3.13 support #3180

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Conversation

T-Dynamos
Copy link
Contributor

@T-Dynamos T-Dynamos commented Jul 26, 2025

This PR adds python 3.13 support, we can't set default version to 3.13 just yet as in latest python, distutils was removed, so a lot of recipes need updating.

@T-Dynamos T-Dynamos force-pushed the python-update branch 2 times, most recently from a483a9d to 24d1da9 Compare July 26, 2025 19:13
@T-Dynamos T-Dynamos changed the title [WIP] python: update to 3.13 python: update to 3.13 Aug 16, 2025
@T-Dynamos T-Dynamos force-pushed the python-update branch 6 times, most recently from 6c99220 to d54d5a7 Compare August 17, 2025 05:51
@T-Dynamos T-Dynamos force-pushed the python-update branch 7 times, most recently from dc86b9e to 308d126 Compare August 19, 2025 14:11
@T-Dynamos T-Dynamos changed the title python: update to 3.13 python: add 3.13 support Aug 20, 2025
@T-Dynamos T-Dynamos force-pushed the python-update branch 6 times, most recently from fc5223d to ecb34a7 Compare August 20, 2025 06:20
@T-Dynamos T-Dynamos marked this pull request as ready for review August 20, 2025 07:48
@T-Dynamos
Copy link
Contributor Author

This PR is ready for review.

I have tested python 3.13 + kivy master + sdl3 bootstrap.

version = '3.11.5'
name = 'hostpython3'
version = '3.11.13'
_p_version = Version(version)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest create it directly where it is used otherwise it wont use the instantiated version value.

@property
def site_dir(self):
dir = None
dir = f"usr/local/lib/python{self._p_version.major}.{self._p_version.minor}/site-packages/"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is using the default version, but we need the instantiated one.

p_version = Version(self.version)
dir = f"usr/local/lib/python{p_version.major}.{p_version.minor}/site-packages/"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants